home *** CD-ROM | disk | FTP | other *** search
- Public Class SplitterForm
- Inherits System.Windows.Forms.Form
-
- #Region " Windows Form Designer generated code "
-
- Public Sub New()
- MyBase.New()
-
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
-
- 'Add any initialization after the InitializeComponent() call
-
- End Sub
-
- 'Form overrides dispose to clean up the component list.
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
- Friend WithEvents ListBox1 As System.Windows.Forms.ListBox
- Friend WithEvents Splitter1 As System.Windows.Forms.Splitter
- Friend WithEvents Splitter2 As System.Windows.Forms.Splitter
- Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
- Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
-
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.Container
-
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(SplitterForm))
- Me.ListBox1 = New System.Windows.Forms.ListBox()
- Me.Splitter1 = New System.Windows.Forms.Splitter()
- Me.Splitter2 = New System.Windows.Forms.Splitter()
- Me.TextBox1 = New System.Windows.Forms.TextBox()
- Me.PictureBox1 = New System.Windows.Forms.PictureBox()
- Me.SuspendLayout()
- '
- 'ListBox1
- '
- Me.ListBox1.Dock = System.Windows.Forms.DockStyle.Left
- Me.ListBox1.ItemHeight = 18
- Me.ListBox1.Name = "ListBox1"
- Me.ListBox1.Size = New System.Drawing.Size(176, 400)
- Me.ListBox1.TabIndex = 0
- '
- 'Splitter1
- '
- Me.Splitter1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
- Me.Splitter1.Location = New System.Drawing.Point(176, 0)
- Me.Splitter1.MinExtra = 200
- Me.Splitter1.MinSize = 100
- Me.Splitter1.Name = "Splitter1"
- Me.Splitter1.Size = New System.Drawing.Size(8, 413)
- Me.Splitter1.TabIndex = 1
- Me.Splitter1.TabStop = False
- '
- 'Splitter2
- '
- Me.Splitter2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
- Me.Splitter2.Dock = System.Windows.Forms.DockStyle.Bottom
- Me.Splitter2.Location = New System.Drawing.Point(184, 117)
- Me.Splitter2.Name = "Splitter2"
- Me.Splitter2.Size = New System.Drawing.Size(456, 8)
- Me.Splitter2.TabIndex = 3
- Me.Splitter2.TabStop = False
- '
- 'TextBox1
- '
- Me.TextBox1.Dock = System.Windows.Forms.DockStyle.Fill
- Me.TextBox1.Font = New System.Drawing.Font("Microsoft Sans Serif", 13.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TextBox1.Location = New System.Drawing.Point(184, 0)
- Me.TextBox1.Multiline = True
- Me.TextBox1.Name = "TextBox1"
- Me.TextBox1.Size = New System.Drawing.Size(456, 117)
- Me.TextBox1.TabIndex = 4
- Me.TextBox1.Text = "TextBox1"
- '
- 'PictureBox1
- '
- Me.PictureBox1.Dock = System.Windows.Forms.DockStyle.Bottom
- Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Bitmap)
- Me.PictureBox1.Location = New System.Drawing.Point(184, 125)
- Me.PictureBox1.Name = "PictureBox1"
- Me.PictureBox1.Size = New System.Drawing.Size(456, 288)
- Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.PictureBox1.TabIndex = 2
- Me.PictureBox1.TabStop = False
- '
- 'SplitterForm
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(7, 17)
- Me.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.ClientSize = New System.Drawing.Size(640, 413)
- Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.TextBox1, Me.Splitter2, Me.PictureBox1, Me.Splitter1, Me.ListBox1})
- Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.Name = "SplitterForm"
- Me.Text = "SplitterForm"
- Me.ResumeLayout(False)
-
- End Sub
-
- #End Region
-
- ' load random items in the ListBox when the form loads
-
- Private Sub SplitterForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Dim i As Integer
- For i = 1 To 100
- ListBox1.Items.Add("Item #" & CStr(i))
- Next
- End Sub
-
- ' Show splitter bar in debug window when the user moves it
-
- Private Sub Splitter1_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles Splitter1.Move
- Debug.WriteLine(Splitter1.SplitPosition)
- End Sub
- End Class
-